package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author long.rao
 * @version v1.0
 * @date 2019/3/5 15:49
 * @since v1.0
 */
@Getter
public enum SurchargeShowEnum {
    // 其他费用
    SURCHARGE_NAME("surchargeName", "enum.surchargeShow.alias.surcharge_name"),
    SUTCHARGE_TYPE("surchargeType", "enum.surchargeShow.alias.sutcharge_type"),
    AMOUNT("amount", "enum.surchargeShow.alias.amount"),
    ;
    private String attr;

    private String alias;

    SurchargeShowEnum(String attr ,String alias){
        this.attr =attr;
        this.alias = alias;
    }

    public String getAlias() {
        return I18nMessageUtil.getMessage(alias);
    }
}
